import React, { Component } from 'react';
import {
    Text,
    TouchableOpacity,
    StyleSheet
} from 'react-native';
import Constant from '../constant/Constants';
export default class LoginButton extends Component {
    render() {
        return (
            <TouchableOpacity style={Style.container} onPress={() => this.props.onPress()}>
                <Text style={Style.textBtn}>{this.props.text}</Text>
            </TouchableOpacity>
        );
    }
}

const Style = StyleSheet.create({
    container: {
        width: 240,
        height: 40,
        marginTop: 20,
        backgroundColor: Constant.COLOR.ColorBlue,
        justifyContent: 'center',
    },
    textBtn: {
        color: 'white',
        alignSelf: 'center',
    }
});